﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;

namespace CuadroMandoIntegralFMCH.Form_s.Login
{
    public class Hash
    {

        public string Hasheada(string loginPass)
        {
            var md5 = MD5.Create();
            byte[] inputBytes = System.Text.Encoding.ASCII.GetBytes(loginPass);
            byte[] hash = md5.ComputeHash(inputBytes);
            loginPass = BitConverter.ToString(hash).Replace("-", "");
            return loginPass;
        }

        public int idUsuario { get; set; }
        public int tipoUsuario { get; set; }

        
    }
}
